using UnityEngine;

public class BonuseInChestButton : MonoBehaviour
{
	public UILabel lbTimeOrCount;

	public UILabel itemNameLabel;

	public UITexture itemImageHolder;

	public void SetData(ChestBonusItemData itemData)
	{
		lbTimeOrCount.text = itemData.GetItemCountOrTime();
		itemImageHolder.mainTexture = itemData.GetTexture();
		itemNameLabel.text = itemData.GetNameItem();
	}
}
